package com.msxt.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.msxt.dto.MinsukefangEntity;
import com.msxt.view.MinsukefangView;
import com.msxt.vo.MinsukefangVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 民宿客房DAO接口
 */
public interface MinsukefangDao extends BaseMapper<MinsukefangEntity> {

	List<MinsukefangVO> listVO(@Param("ew") QueryWrapper<MinsukefangEntity> wrapper);

	MinsukefangVO selectVO(@Param("ew") QueryWrapper<MinsukefangEntity> wrapper);

	List<MinsukefangView> listView(@Param("ew") QueryWrapper<MinsukefangEntity> wrapper);

	List<MinsukefangView> listView(Page<MinsukefangView> page, @Param("ew") QueryWrapper<MinsukefangEntity> wrapper);

	MinsukefangView selectView(@Param("ew") QueryWrapper<MinsukefangEntity> wrapper);

	IPage<MinsukefangView> selectPageView(Page<MinsukefangView> page, @Param("ew") QueryWrapper<MinsukefangEntity> wrapper);
}